package com.sld.cloudalibaba.vojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 返回前台json统一类
 * @param <T>
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Result<T> {

    private Integer code;
    private String message;
    private T      data;

    public Result(Integer code,String message){
        this(code,message,null);
    }

}
